From 5f3c34f1f8c1d5e183e3e20d5aeaee6d73fab662 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 12 Oct 2017 10:02:05 +1100 Subject: [PATCH] Deprecate $wgEnableAPI and $wgEnableWriteAPI $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in a future version. The API is now considered to be stable, secure and essential. Bug: T115414 Change-Id: I8c98ce63afd82677ecf662f8159e58be1759bde0 --- RELEASE-NOTES-1.31 | 4 +++- includes/DefaultSettings.php | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index 3fd1fc8ac9..57cbec456d 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -6,7 +6,9 @@ MediaWiki 1.31 is an alpha-quality branch and is not recommended for use in production. === Configuration changes in 1.31 === -* … +* $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in + a future version. The API is now considered to be stable, secure and + essential. === New features in 1.31 === * … diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 780976a1c8..bd944d24d8 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -7953,6 +7953,8 @@ $wgExemptFromUserRobotsControl = null; * machine-readable data via api.php * * See https://www.mediawiki.org/wiki/API + * + * @deprecated since 1.31 */ $wgEnableAPI = true; @@ -7960,6 +7962,8 @@ $wgEnableAPI = true; * Allow the API to be used to perform write operations * (page edits, rollback, etc.) when an authorised user * accesses it + * + * @deprecated since 1.31 */ $wgEnableWriteAPI = true; -- 2.20.1